package cn.ibizlab.odoo.core.odoo_crm.service;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.util.Collection;
import java.math.BigInteger;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import cn.ibizlab.odoo.core.odoo_crm.domain.Crm_partner_binding;
import cn.ibizlab.odoo.core.odoo_crm.filter.Crm_partner_bindingSearchContext;

/**
 * 实体[Crm_partner_binding] 服务对象接口
 */

public interface ICrm_partner_bindingService{
     void updateBatch(List<Crm_partner_binding> crm_partner_bindings, int batchSize) ;
     Crm_partner_binding get(Integer id) ;
     Crm_partner_binding get(Crm_partner_binding crm_partner_binding) ;
     void createBatch(List<Crm_partner_binding> crm_partner_bindings, int batchSize) ;
     void removeBatch(Collection<? extends Serializable> idList, int batchSize) ;
     boolean update(Crm_partner_binding crm_partner_binding) ;
     boolean create(Crm_partner_binding crm_partner_binding) ;
     boolean remove(Integer id) ;

    /**
     * 查询集合 默认查询
     */
    Page<Crm_partner_binding> searchDefault(Crm_partner_bindingSearchContext context) ;

    /**
     * 根据联系人查询
     */
     Page<Crm_partner_binding> selectByOdoo_partner(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Crm_partner_binding> selectByOdoo_create(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Crm_partner_binding> selectByOdoo_write(Integer id) ;

    /**
     * 转换ClientModel为Domain
     */
    public Crm_partner_binding convert2Domain(cn.ibizlab.odoo.core.client.model.Icrm_partner_binding model ,Crm_partner_binding domain);

    /**
     * 转换Domain为ClientModel
     */
    public cn.ibizlab.odoo.core.client.model.Icrm_partner_binding convert2Model(Crm_partner_binding domain , cn.ibizlab.odoo.core.client.model.Icrm_partner_binding model);

}
